import axios from "../utils/request";

// 列表
export interface MyHomeworkctrListData {
  page: string;
  type: string;
  subjectID:number
}
export function postMyHomeworkctrList(params: MyHomeworkctrListData) {
  return axios.post("/api/MyHomework/ctrList", params);
}
// 详情
export interface MyHomeworkreturnTestListdata {
  testId: string;
}
export function MyHomeworkreturnTestList(params: MyHomeworkreturnTestListdata) {
  return axios.post("/api/MyHomework/returnTestList", params);
}

// 报告详情
export interface ReportgetData {
  gid: number;
  sid: number;
  paperID: number;
  ctrID: number;
}
export function postReportgetData(params: ReportgetData) {
  return axios.post("/api/Report/getData", params);
}

// 生成报告
export interface MyHomeworkhtmltopdfData {
  html: any;
  ctrID: number;
}
export function MyHomeworkhtmltopdf(params: MyHomeworkhtmltopdfData) {
  return axios.post("/api/MyHomework/htmltopdf", params);
}
